home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / sfx5.zip / CD-BEEP.EXE / CDBEEP.DOC < prev    next >
Text File  |  1991-10-11  |  17KB  |  292 lines

  1.                            ____________________________
  2.                           |                            |
  3.                           |       CBEEP - DBEEP        |
  4.                           | Replace BEEP With a Flash! |
  5.                           |____________________________|
  6.  
  7.                                 Copyright (C)  1991
  8.                                   >>-Swift-Ware->
  9.  
  10.                                    Version  1.2
  11.                                     April 1991
  12.  
  13.                                  I. Introduction
  14.  
  15.         CBEEP, DBEEP, and the associated files were designed to allow the
  16.         replacement  of the usual beep sound (which many programs use  to
  17.         get  the user's attention) with a visual flash.   Potential  uses
  18.         for  such a capability are to allow a hearing-impaired person  to
  19.         sense  the beep or to avoid disturbing normal-hearing people  yet
  20.         allow  the program to signal the user.  This is  accomplished  by
  21.         replacing  the  code  which generates the  beep  sound  with  new
  22.         program  instructions  which  replace the beep with  a  flash  of
  23.         selectable  size and duration.  Although the copyright  has  been
  24.         retained,  there is no charge for use of these programs and  they
  25.         may  freely be copied and distributed to others as long  as  they
  26.         are not modified and all files, including this documentation, are
  27.         included.
  28.                              II.  Installation and Use
  29.  
  30.         The primary programs in this package are CBEEP.COM and DBEEP.COM.
  31.         They  will usually be referred to without their  .COM  extensions
  32.         for  convenience.  DBEEP is first used to produce a  new  renamed
  33.         version  of any program which has the beep replaced by  a  flash.
  34.         Then  CBEEP is loaded into the computer's memory.  CBEEP  is  the
  35.         program which actually makes the flash when called upon to do  so
  36.         by  the  debeeped program.  Finally the debeeped version  of  the
  37.         program  is loaded and run.  After some initial preparation,  the
  38.         use  of the debeeped version of a program can be made  completely
  39.         automatic and transparent to the user.
  40.  
  41.         First, the program to be debeeped must be selected.  Programs can
  42.         be  recognized  by their file extension of  .COM  (for  "command"
  43.         or .EXE (for "executable").  DBEEP, CBEEP, and the program to  be
  44.         debeeped  should  all be placed in the  same  subdirectory.   For
  45.         simplicity, this may be the subdirectory in which the program  to
  46.         be debeeped was initially located.  That subdirectory should next
  47.         be  made  the current subdirectory.  Then the  debeeping  program
  48.         DBEEP should be started by entering its name from the DOS command
  49.         line. If the program to be debeeped was NOISY.EXE in subdirectory
  50.         C:\PROGRAMS,  and  if  CBEEP  and DBEEP were  on  a  floppy  disk
  51.         inserted in floppy disk Drive A:, this might be done by something
  52.         like
  53.                   C:
  54.                   CD \PROGRAMS
  55.                   COPY A:CBEEP.COM
  56.                   COPY A:DBEEP.COM
  57.                   DBEEP
  58.  
  59.         This  will start execution of the debeeping program.  DBEEP  will
  60.         display  a  menu  where <F1> may be pressed  to  display  a  help
  61.         screen,  <F2> may be pressed to start the debeeping process,  and
  62.         <F3>  may be pressed to install CBEEP in the computer.  For  now,
  63.         let's wait a bit before installing CBEEP and go on to create  the
  64.         debeeped  version  of the program.  Press <F2> and  you  will  be
  65.  
  66.         prompted to enter the name of the program to be debeeped.  In our
  67.         example,  the program was NOISY.EXE in subdirectory  PROGRAMS  on
  68.         Drive C:, so enter
  69.  
  70.                   C:\PROGRAMS\NOISY.EXE
  71.  
  72.         If   you   followed  the  previous  instructions,   the   current
  73.         subdirectory  would  have  been C:\PROGRAMS,  so  the  full  path
  74.         reference would not have been necessary, just entering  NOISY.EXE
  75.         would have been ok. Next you will be prompted for the name of the
  76.         new  (debeeped) version of the program which you want to  create.
  77.         Select  any name with no more than eight letters in the name  and
  78.         use the same extension (the ".COM" or ".EXE") as was used in  the
  79.         original program.  It is very important to use the same extension
  80.         but the name should be different from the original name.  In  our
  81.         case  we might select the name NOTNOISY.EXE as our  new  program.
  82.         After  you  enter  the new program name,  DBEEP  will  begin  the
  83.         debeeping  process. You will see from the display on  the  screen
  84.         that the process has begun and the display will indicate when the
  85.         debeeping  process  has finished; this may take a minute  or  so.
  86.         After DBEEP has finished, you may  press <F3> to "launch"  CBEEP.
  87.         This places into the computer's memory the program which produces
  88.         the  flash when called upon to do so by the debeeped  version  of
  89.         the  program.  As part of the process of installing or  launching
  90.         CBEEP,  the  CBEEP  menu  will  be  displayed  which  will  allow
  91.         selecting  the size and duration of the flash.  Press the  number
  92.         keys  as  indicated to select your  preferred  choice.   Finally,
  93.         after completing the creation of the debeeped program (which  you
  94.         have  given  a new name) and installing CBEEP, you are  ready  to
  95.         exit from DBEEP which may be done by pressing the <Esc> key.  You
  96.         will now be back at the DOS prompt and may run your new  debeeped
  97.         version of the program by entering its new name.  In our example,
  98.         merely enter NOTNOISY.  That's all there is to it.
  99.  
  100.         In  some cases, you may see the message "NO BEEPERS  FOUND"  even
  101.         though you know that the program produces beeps.  In most  cases,
  102.         this  will  not cause a problem and the beeps  will  properly  be
  103.         intercepted  and  replaced by flashes.  A further  discussion  of
  104.         this will be found in the section for Advanced Topics.
  105.  
  106.         Once  it has been created, it is not necessary to go through  all
  107.         the  previous steps to run the debeeped program again.   Normally
  108.         CBEEP will stay in memory ready to do its job until the  computer
  109.         is rebooted or the power is turned off.  The debeeped version  of
  110.         your program (i.e. NOTNOISY.EXE in the example above) will remain
  111.         available  for  use.   All you have to do to run  the  program  a
  112.         second  time is to move to the proper subdirectory and enter  the
  113.         debeeped program's name again.  In our example,
  114.  
  115.                   C:
  116.                   CD \PROGRAMS
  117.                   NOTNOISY
  118.  
  119.         If  the computer has been rebooted or the power has  been  turned
  120.         off,  it  will  be necessary to reload CBEEP  in  the  computer's
  121.  
  122.         memory. This can be done by entering DBEEP from the command  line
  123.         and  then  pressing <F3> and continuing to install CBEEP  as  was
  124.         done  before.  A shortcut which can be used if you  remember  the
  125.         number  of  the menu item you used to select the flash  size  and
  126.         duration is to skip the use of DBEEP and just enter CBEEP /n from
  127.         the  DOS  command  line, where for "n" you enter  the  menu  item
  128.         selection.   For example, to get a large, 1/2 sec.  flash,  enter
  129.         CBEEP /2.
  130.  
  131.         If you use the debeeped versions of your programs frequently, you
  132.         may want to place the CBEEP /n command in your AUTOEXEC.BAT  file
  133.         where it will cause CBEEP to be automatically installed each time
  134.         you reboot or power up your computer.
  135.  
  136.         The  previous instructions were written for use with  a  computer
  137.         with  a  hard disk.  If you have two floppy  disks  instead,  the
  138.         instructions  will generally be the same except that  you  should
  139.         replace  "C:" with "B:" wherever it appears.  You will,  however,
  140.         have to be sure there is enough room on the floppy in Drive B: to
  141.         hold CBEEP, DBEEP, and the new debeeped version of your program.
  142.  
  143.         If  you have only a single floppy disk, it is still  possible  to
  144.         follow  a similar process.  If you are a  reasonably  experienced
  145.         DOS  user,  you can probably figure out how to modify  the  above
  146.         instructions.   If you are not sufficiently experienced, it  will
  147.         probably be best to get help from a more experienced friend.
  148.  
  149.                                IV.  Advanced Topics
  150.  
  151.         The previous sections have been written assuming some familiarity
  152.         with  DOS  on  the part of the user, but that he  does  not  have
  153.         advanced  knowledge.   For  the more  advanced  user,  additional
  154.         information,  not  usually  needed,  will  be  included  in  this
  155.         section.
  156.  
  157.         CBEEP.COM is a terminate-and-stay-resident (TSR) program which is
  158.         called by the debeeped program.  DBEEP.COM searches the  original
  159.         user's  program and replaces all code which generates beeps  with
  160.         code  which generates a software interrupt.   Normally  interrupt
  161.         60H  is  used,  but  CHGINT.COM may be  used  to  select  another
  162.         interrupt if 60H causes interference with other users of the same
  163.         interrupt. CBEEP, DBEEP, and CHGINT should be placed in the  same
  164.         subdirectory, and CHGINT run.  That will display a menu  allowing
  165.         selection  of an alternate interrupt number in the range  60H  to
  166.         66H.  You should be very careful about using interrupt 67H as  it
  167.         is used for LIM EMS (an Expanded Memory manager) in all  versions
  168.         of  DOS beginning with DOS 2.0 although only officially  reserved
  169.         by DOS in DOS 4.0 and above.
  170.  
  171.         C/DBEEP  should be compatible with all versions of DOS  from  DOS
  172.         2.0  on  and should work with MDA, Hercules, CGA,  EGA,  and  VGA
  173.         display adapters.
  174.  
  175.         If  the space taken up by CBEEP is needed in order to  run  large
  176.         applications or if there are conflicts with other TSRs, CBEEP may
  177.         be  uninstalled by entering CBEEP /U from the DOS  command  line.
  178.         This  can  be done only if no other TSRs have been  loaded  after
  179.         CBEEP.   If  you  need to load additional TSRs  after  CBEEP  and
  180.         unload  them  (as  well as CBEEP), you may want to  look  at  TSR
  181.         control programs such as PC Magazine's INSTALL and REMOVE or  the
  182.         well  known MARK and RELEASE (usually contained in  a  compressed
  183.         archive  called  TSRCOM.ARC or TSRCOM.ZIP)  or  their  commercial
  184.         equivalents such as POPDROP.
  185.  
  186.         If  you  want to suppress the messages output by  CBEEP  when  it
  187.         loads  and  unloads,  you can redirect the output  to  NUL.   For
  188.         example  CBEEP /1 > NUL will result in no output to  the  screen.
  189.         The installation message can also be suppressed by adding "x"  to
  190.         the size/duration switch, CBEEP /1x.
  191.  
  192.         Beeps can be generated in several ways.  The best-behaved  method
  193.         is to use DOS' BIOS services to send a BEL (character code 7)  to
  194.         the  screen.  An alternate method is directly to  manipulate  the
  195.         hardware  which controls the speaker.  This is done by using  the
  196.  
  197.         OUT  instruction to change the two low order bits of port 61H  to
  198.         turn  the  speaker on and off.  DBEEP looks for  the  code  which
  199.         generates  such  instructions  and replaces it  with  a  software
  200.         interrupt (using either the default interrupt number of 60H or an
  201.         alternate  interrupt  number  selected via  CHGINT),  padding  as
  202.         needed  with NOPs. A reasonableness check of surrounding data  is
  203.         made  in order to distinguish code from data prior  to  replacing
  204.         the  beep codes.  This technique for handling direct port  writes
  205.         was suggested by Dave Fallen's SILENCER program code.
  206.  
  207.         In some cases the message "NO BEEPERS FOUND" is produced by DBEEP
  208.         even  though the code being debeeped is known to  produce  beeps.
  209.         This is generally caused by code which does not write directly to
  210.         hardware ports but merely uses DOS or BIOS services to produce  a
  211.         beep by sending the BEL character to the screen.  The  interrupts
  212.         used  by these services are trapped by CBEEP and thus  the  beeps
  213.         are  properly  converted  into flashes even  though  no  code  is
  214.         modified by DBEEP.  The message "NO BEEPERS FOUND" thus indicates
  215.         that  no  code  replacement was necessary rather  than  that  the
  216.         program being debeeped doesn't have any beep-producing code.
  217.  
  218.         There are a few known limitations to this procedure.   Compressed
  219.         executable  code will not generally allow the instructions to  be
  220.         properly identified.  If the compression technique which has been
  221.         used  is known, it may be possible to uncompress the code,  apply
  222.         the  debeeping  program  to the uncompressed  version,  and  then
  223.         recompress  the  debeeped version.  Microsoft  Windows  code  may
  224.         cause  problems.   Programs  which have been  compressed  can  be
  225.         identified  (along  with the compression technique used)  by  the
  226.         utility   CHK4COMP.EXE.   Many  commercial  programs  have   been
  227.         compressed by Microsoft's EXEPACK; these may be unpacked by using
  228.         UPACKEXE.EXE.   As  of this writing, CHK4COMP could  be  obtained
  229.         from  CompuServe IBMSYS in CKH4.ZIP; UPACKEXE was also  available
  230.         from CompuServe IBMSYS in LZEX91.ZIP.
  231.  
  232.         C/DBEEP  has not been tested for use on overlays.   For  standard
  233.         overlays  it  may be possible to debeep the  overlays  just  like
  234.         a .COM or .EXE file.  Borland's VROOMM (TM) overlays are known to
  235.         cause problems (they are identifiable by the .VRM extension).  In
  236.         particular, the file Q.VRM in Quattro Pro 1.0 may not be debeeped
  237.         using the standard method.
  238.  
  239.         Generally  it  is anticipated that for a  hearing-impaired  user,
  240.         CBEEP  will be installed by a line in AUTOEXEC.BAT and  that  the
  241.         debeeped program will be called instead of the standard  version,
  242.         either  through use of batch files or by renaming.  In  case  the
  243.         application  program  needs  to be used in both a  normal  and  a
  244.         debeeped  mode, both versions (with different names,  of  course)
  245.         may be used at any time. The original code is never modified.
  246.  
  247.                                  V.  Disclaimer
  248.  
  249.         The  software and documentation in this packare are provided  "As
  250.         Is"  without  warranty  of any kind.   >>-Swift-Ware->  does  not
  251.         warrant,  guarantee,  or make any representations  regarding  the
  252.         use, or the results of use, of this software.  All risk taken  in
  253.         the use of this software is assumed by you, the user, and not  by
  254.         >>-Swift-Ware->,  nor  by  any person  or  organization  who  may
  255.         distribute this product.
  256.  
  257. OTHER PROGRAMS by the AUTHOR:
  258.  
  259. BOBCAT ($15.00) ....... Lets anyone manage their Files and Directories,
  260.                         with an easy press of a key you can copy, move
  261.                         delete, view, mark, create, edit, compress, -
  262.                         uncompress, format - plus enables the user to
  263.                         assign up to 20 of his or her commands or favorite
  264.                         programs to the menuing system and many more -
  265.                         features from within a window environment...
  266.  
  267.  
  268. MENU MAKER ($10.00) ... Makes it easy for anyone to create beautiful
  269.                         stand alone - 3D Text mode graphic shadow box
  270.                         window menus. Create up to 4 windows you can pop
  271.                         down by the press of a function key then highlight
  272.                         your commands or program names via menu bar or -
  273.                         mouse to activate them.
  274.  
  275.  
  276. REDEFINE ($10.00) ..... Enables assigning up to 20/60 character command -
  277.                         strings to any of the Alt + Number keys or function
  278.                         keys F1 to F10 plus recall your last 10 DOS commands.
  279.  
  280.                         Also includes many utilities - View files, Copy,
  281.                         Delete, Rename, Show All Paths, NotePad, and many
  282.                         more in an easily Deactivated Pop Down TSR.
  283.  
  284.  
  285.  GRAB4 ($10.00) ....... TSR that makes it an easy task to capture text
  286.                         mode screens from within most any running program.
  287.                         Enables saving screens as Executables including -
  288.                         their color values, or save as a readable text mode
  289.                         ASCII file, you can also edit any current or saved
  290.                         screen and capture or append to another file.
  291.                         Easily Deactivated.
  292.